<?phpinclude_once 'constants.php';session_start();$loggedIn = isset($_SESSION[$sessionLoginTag])?$_SESSION[$sessionLoginTag]:null;if(!$loggedIn){	header('location:index.php');	exit;}
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<style></style>
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
if(!navigator.geolocation){		
	alert("GEO Location Unavailable");
}else{   	
	navigator.geolocation.getCurrentPosition(function(position){		
		lat = position.coords.latitude;   			
		lng = position.coords.longitude;   			
		window.location = 'mapLoc.php?lat='+lat+'&lng='+lng;    		
		},function(error){			
			switch(error.code){							
				case error.PERMISSION_DENIED: 									
					alert('Permission Denied');       								
					break;       						
				case error.POSITION_UNAVAILABLE:         								
					alert('Position Unavailable');       								
					break;	   						
				case error.TIMEOUT:       								
					alert('Timeout');      								
					break;      						
				default:       								
					alert('Other Error');    								
				break;					
			}		
		}	
	);}
</script>
</head>
<body>
</body>
</html>